import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';


import { setupRouter } from './router'
import { setupStore } from './store'
import { registerGlobVariable } from  '@/utils/registerGlobVariable'

function bootstrap() {
    const app = createApp(App)
    // setup router
    setupRouter(app)

    setupStore(app)

    // 注册全局变量
    registerGlobVariable(app)

    app.use(Antd)

    app.mount('#app')
}

bootstrap();